import axios from "../utils/axios"
export let setDate = (data)=>{
    return {
        type:"setDate",
        payload:data
    }
}
export let getdata = ()=>{
    return (dispatch)=>{
        axios.get("/api/line").then(res=>{
            dispatch({
                type:"getdata",
                payload:res.data
            })
        })
    }
}
